import request from "../utils/request"
//轮播图的接口
export interface WorthBuyModel{
  checkNavType:boolean,
  navList:NavListModel[]
}
export interface NavListModel{
  id: number,
  picUrl: string,
  mainTitle: string,
  viceTitle: string,
  columnUrl: string,
  onlineType: boolean,
  vaildStartTime: number,
  vaildEndTime: number,
  rank: number
}
//瀑布流的接口
export interface TopicModel{
  [paramsName :string]:any
}

//值得买 轮播数据
export function getNavList(){
  return request.get<any,WorthBuyModel>('/dapi/topic/v1/know/navWap.json')
}

//瀑布流的分页数据
export function getContent(page:number,limit:number){
  return request.get<any,TopicModel>(`/dapi/topic/v1/find/recAuto.json?page=${page}&size=${limit}`)
}


